from rest_framework import serializers
from .models import Comment, Comment_Comment


class CommentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'


class CommentDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = '__all__'
        depth = 3


class Comment_CommentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment_Comment
        fields = '__all__'


class Comment_CommentDetailSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment_Comment
        fields = '__all__'
        depth = 4
